package com.liao.api;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 28580
 * @version 1.0
 * @description: TODO
 * @date 2023/7/21 18:37
 */
@RestController
@PreAuthorize("hasAuthority('user')")
public class HelloController {
    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }
}